package com.tiantian.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tiantian.service.IndexService;

@Controller
public class IndexController {
	@Autowired
	private IndexService indexService;

	@RequestMapping(value = { "", "/", "/index", "/home", "/default", "/wellcome" })
	public String index(Model model) {
		model.addAttribute("count", indexService.getCount());
		return "wellcome";
	}
}
